Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] allow the user to overwrite the no_input flag to pip #5036

Merged
merged 1 commit into from Apr 20, 2022
Merged

[fix] allow the user to overwrite the no_input flag to pip #5036

merged 1 commit into from Apr 20, 2022

Conversation

ghost
Copy link

@ghost ghost commented Apr 8, 2022

this is required if you want to e.g. use a keyring to authenticate
against Google Artifact Registry. fixes #4706

Thank you for contributing to Pipenv!

The issue

What is the thing you want to fix? Is it associated with an issue on GitHub? Please mention it.

Always consider opening an issue first to describe your problem, so we can discuss what is the best way to amend it. Note that if you do not describe the goal of this change or link to a related issue, the maintainers may close the PR without further review.

If your pull request makes a non-insignificant change to Pipenv, such as the user interface or intended functionality, please file a PEEP.

https://github.com/pypa/pipenv/blob/master/peeps/PEEP-000.md

The fix

How does this pull request fix your problem? Did you consider any alternatives? Why is this the best solution, in your opinion?

The checklist

@@ -518,7 +518,7 @@ def pip_options(self):
pip_options, _ = self.pip_command.parser.parse_args(self.pip_args)
pip_options.cache_dir = self.project.s.PIPENV_CACHE_DIR
pip_options.no_python_version_warning = True
pip_options.no_input = True
pip_options.no_input = self.project.settings.get("disable_pip_input", True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is going to at a minimum require some documentation around how to specify this in the Pipfile and what it does.

Copy link
Author

@ghost ghost Apr 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried figuring out how the documentation is built but failed. Can you point me in the right direction, @matteius?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure -- so you have to go into the docs directory and there is a separate requirements.txt in there to install using pip -r requirements.txt. I think after that you should just have to run make html to build the html docs. Going from memory here but I did it not so long ago ...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't get the pipfile to show as syntax. But the doc is added. Maybe you can take it from here, @matteius ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since its in your fork, best I can do is address any formatting in a followup PR. I'll at least get this merged now.

this is required if you want to e.g. use keyring to authenticate
against Google Artifact Registry
@matteius matteius merged commit ca8ff55 into pypa:main Apr 20, 2022
@ghost ghost deleted the feature/no_input_flag branch April 21, 2022 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using: keyrings.google-artifactregistry-auth pipenv update -d fails hard.
2 participants